/**
 * 计算表格内容区域的尺寸对象
 */
export const tableSizeMixin = {
  data() {
    return {
      tableRect: {},
      tableHeight: 0
    }
  },
  mounted() {
    this.$nextTick(() => {
      if (this.$refs.tableWrapRef) {
        this.tableRect = this.$refs.tableWrapRef.getBoundingClientRect();
        this.tableHeight = this.tableRect.height;
      }
    })
  }
}